/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package gridworld_v04;

/**
 *
 * @author Jonah
 */
public class Flower extends Actor{
    /*implementation comment*/
    ////<editor-fold defaultstate="collapsed" desc="Static Variables">
    //</editor-fold>
    ////<editor-fold defaultstate="collapsed" desc="Instanced Variables">
    //</editor-fold>
    ////<editor-fold defaultstate="collapsed" desc="Constructor">
    public Flower(Tile currentTile, Game game, Board board, int lifespan) {
        super(currentTile, game, board);
        super.setLifeSpan(lifespan);
    }
    //</editor-fold>
    ////<editor-fold defaultstate="collapsed" desc="Class Methods">
    @Override
    public void checkSafeTiles() {// this will never be called
        throw new UnsupportedOperationException("Not supported.");
    }
    @Override public void move() {
        //flowers dont move
        if (lifeSpan < 1){
            super.remove();
        }else{
            super.getGame().addActorReference(this);
            lifeSpan--;
        }
    }
    //</editor-fold>
    ////<editor-fold defaultstate="collapsed" desc="Interface Override Methods">
    //</editor-fold>
}
